<!DOCTYPE html>
<html>
<head>
  <style type="text/css" media="screen">
    .target {
        position: absolute;
        top: 100px;
        left: 0;
        height: 100px;
        width: 100px;
    }
    #box {
        background-color: green;
        animation-name: move;
        animation-duration: 1s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
    }
    @keyframes move {
        from {
            transform: translateX(0) scale(1);
            opacity: 0.0;
        }
        to {
            transform: translateX(400px) scale(1);
            opacity: 1.0;
        }
    }
    #indicator {
        left: 200px;
        background-color: red;
    }
  </style>
  <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
  <script type="text/javascript" charset="utf-8">

    const expectedValues = [
      // [time, element-id, property, expected-value, tolerance]
      [0.5, "box", "transform.4", 200, 5],
    ];

    var disablePauseAnimationAPI = false;
    var doPixelTest = true;
    runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPixelTest);
    
  </script>
</head>
<body>

<!-- In the pixel results, the green square should overlay the red square -->
<div class="target" id="indicator"></div>
<div class="target" id="box"></div>
<div id="result"></div>

</body>
</html>
